<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Subscriber</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>		
	<?php
	include TEMPLATEPATH.'/incs/subscriber/process.php';
	if(wp_verify_nonce($_POST['act_unsubscriber'],'act_unsubscriber'))
	{
		$email  = $_POST['email'];
		$code	= $_POST['code'];
		db_delete_subscriber_by_email($email); 
	} 	$result = "Thank! Unsubscribet success.";
	?>
	<form action="" method="post">
		<label>Email</label><br/>
		<input type="text" name="email" id="sbEmail" value=""><br/>
		
		<label>Code</label><br/>
		<input type="text" name="code" id="sbcode" value=""><br/>
		
		<input type="submit" name="subscriber_bt" id="subscriber_bt" value="go">
		<div id="subscriber_message" style="color: red; text-align: center;">
		</div>
		<?php wp_nonce_field('act_unsubscriber','act_unsubscriber');?>	
	</form>
</body>
</html>
